package com.javaweb.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.javaweb.admin.entity.KdlMaintainReport;
import com.javaweb.admin.query.KdlMaintainReportQuery;
import com.javaweb.admin.query.KdlTransReportQuery;
import com.javaweb.admin.vo.transreport.KdlMaintainReportVo;
import com.javaweb.admin.vo.transreport.KdlTransReportVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface KdlMaintainReportMapper extends BaseMapper<KdlMaintainReport> {
    IPage<KdlMaintainReportVo> getMaintainReportList(IPage<KdlMaintainReportVo> page, @Param("req") KdlMaintainReportQuery req);

    @Select("select isnull(convert(varchar(10),max(VDATUM),112),'20240328') from kdl_maintain_report")
    String GetMaxSyncTime();
}

